import request from '../axios'

/**
 * 商品列表接口
 */
export function index(data) {
    return request({
        url: 'goods/index',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}

/**
 * 机器内的商品列表
 */
export function goodslist(data) {
    return request({
        url: 'goods/goodslist',
        method: 'post',
        data,
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded',
        }
    })
}
